package com.treasure.web.mapstruct;

import com.treasure.infrastructure.model.po.KnowledgeBase;
import com.treasure.infrastructure.model.po.KnowledgeDocument;
import com.treasure.web.command.response.KnowledgeDocumentResponse;
import com.treasure.web.command.response.KnowledgeRepositoryResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author sunhongmin
 * @date 2023/9/3 23:20
 * @description
 */
@Mapper
public interface KnowledgeRepositoryAssembler {
    KnowledgeRepositoryAssembler INSTANCE = Mappers.getMapper(KnowledgeRepositoryAssembler.class);


    KnowledgeRepositoryResponse convertToKnowledgeRepositoryResponse(KnowledgeBase knowledgeBase);

    List<KnowledgeRepositoryResponse> convertToKnowledgeRepositoryResponseList(List<KnowledgeBase> knowledgeBaseList);

    KnowledgeDocumentResponse convertToKnowledgeDocumentResponse(KnowledgeDocument knowledgeDocument);
    List<KnowledgeDocumentResponse> convertToKnowledgeDocumentResponseList(List<KnowledgeDocument> knowledgeDocument);


}
